package com.yami.shop.bean.dto;
import com.yami.shop.bean.model.OrderExchangeNft;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ExchangeOrderDTO {

    @Schema(description = "商品id")
    private Long spuId;

    @Schema(description = "规格id")
    private Long skuId;

    @NotNull(message = "配送类型不能为空")
    @Schema(description = "配送类型1 快递 2 自提")
    private Integer dvyType;

    @Schema(description = "地址ID，0为默认地址")
    @NotNull(message = "地址不能为空")
    private Long addrId;

    @NotNull(message = "店铺id不能为空")
    @Schema(description = "店铺id",required=true)
    private Long shopId;

    @NotNull(message = "兑换数量不能为空")
    @Min(value = 1,message = "兑换数量不能为空")
    @Schema(description = "兑换数量",required=true)
    private Integer count;

    @Schema(description = "兑换币的记录")
    private List<OrderExchangeNft> orderExchangeNfts;

    @Schema(description = "持仓id")
    private List<String> personIds;

    @Schema(description = "自提点id")
    private Long stationId;

    @Schema(description = "自提人的手机")
    private String stationUserMobile;

    @Schema(description = "自提人的名字")
    private String stationUserName;

    @Schema(description = "自提时间(用户下单时选择)")
    private String stationTime;
}
